home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9300 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Tradition or what?
  5. Date: 8 Mar 1996 20:05:54 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4hqp22$3sb@solutions.solon.com>
  8. References: <4g0elg$mdr@redstone.interpath.net> <1996Mar8.153250.115645@kuhub.cc.ukans.edu> <4hqfug$19l@news.interpath.net> <4hqkso$gno@news1.mnsinc.com>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <4hqkso$gno@news1.mnsinc.com>,
  12. Szu-Wen Huang <huang@mnsinc.com> wrote:
  13. >Let me join in.  I use magic numbers for states in parsing tables,
  14. >and will shoot anybody who suggests I should #define state numbers.
  15. >I hope we buried the issue, now that I've given one good place to
  16. >use magic numbers instead of #define's.
  17.  
  18. Don't shoot me, but let's look at specific examples.
  19.  
  20. While lex and similar tools do this, I would never do it; I would name
  21. all states, although not with #defines; I'm an enum man, myself.
  22.  
  23. -s
  24. -- 
  25. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  26. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  27. FUCK the communications decency act.  Goddamned government.  [literally.]
  28. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  29.